<?php
/**
 * header.php
 * Yunjie Theme
 */
$yunjie_using_ajax = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php wp_title(' | ', true, 'left'); ?> <?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<?php if ($yunjie_using_ajax) : if (is_single() or is_page()) :?>
<script type='text/javascript' src='http://www.mathelite.cn/wp-content/themes/yunjie/js/yunjieajax.js?ver=0.020'></script>
<?php endif; endif;?>
</head>

<body>
<div id="wrapper">
<div id="header">
	<div id="blogtitle"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1></div>
	<div id="subtitle"><h2><?php bloginfo('description'); ?></h2></div>
</div>
<div class="fixed"></div>
<div id="navmenu">
	<ul>
	<?php
		if (is_home())
			echo '<li class="current-cat">';
		else
			echo '<li>';
		echo '<a href="http://www.mathelite.cn/" title="回到首页">首页</a></li>';
		wp_list_categories('sort_column=menu_order&depth=1&title_li=');
		echo '<li><a href="http://www.yunjie.org" rel="external nofollow" title="Just for fun" target="_blank">BBS</a></li>';
		wp_list_pages('sort_column=menu_order&depth=1&title_li=');
	?>
	</ul>
</div>
<div class="fixed"></div>
<div id="main">
